import { IDispose } from "../../gengine/core/IDispose";
import { UICompomentPool } from "../utils/UICompomentPool";
//class GBitmap
    
    export  class GBitmap /* flash.display.Bitmap */ implements IDispose
    {
        constructor(arg1: Object /* flash.display.BitmapData */=null, arg2: string="auto", arg3: Boolean=false)
        {
            super(arg1, arg2, arg3);
            return;
        }

        public dispose(arg1: Boolean=true): void
        {
            this.bitmapData = null;
            if (this.parent) 
            {
                this.parent.removeChild(this);
            }
            if (arg1) 
            {
                UICompomentPool.disposeUICompoment(this);
            }
            return;
        }
    }
